package net.xdclass.feign;

import net.xdclass.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: wangzhan
 * @Description: TODO
 * @DateTime: 2025/1/7 23:01
 **/
@FeignClient(name = "dcloud-link-service")
public interface ShortLinkFeignService {
    /**
     * 检查短链是否存在
     * @param shortLinkCode 短链码
     * @return
     */
    @GetMapping(value = "/api/link/v1/check", headers = {"rpc-token=${rpc.token}"})
    JsonData check(@RequestParam("shortLinkCode") String shortLinkCode);

}
